CE 351, Fall 2020
Project 4
Name: Cesar Molina
Email: camolina@fortlewis.com
1. Title: Arduino programming for LCDs and Sensors
2. Introduction
The purpose of this project was to help students
improve their Arduino programming skills while working with LCDs, Sensors, and
Actuators. The programming tasks to control these devices were based on
different functions such using a LCD to display the temperature and humidity
from ultrasonic and remote sensors. Additionally
students were task to use motors as actuators. By the end of this project,
students gained an ability to program the Arduino R3 microcontroller to control
LCDs, Sensors and Actuators.
3. Materials and Methods
|
Materials |
Amount |
|
Computer |
1 |
|
Arduino
IDE |
1 |
|
Arduino
UNO R3 |
1 |
|
10K
Potentiometer |
1 |
|
LCD
|
1 |
|
Thermistor |
1 |
|
10K
Resistor |
1 |
|
DHT11 |
1 |
|
IC
Temp Sensor |
1 |
|
IR
Receiver module |
1 |
|
Barebone
ATmega328p |
1 |
|
Breadboard |
1 |
|
Wires |
20 |
The
step-to-step procedure on how to program the Arduino R3 microcontroller for
LCDs, Sensors, and Actuators was provided by Dr. Li on his webpage and can be
found here.
The
lab procedure consisted on following and understanding the programming examples
on Dr. Li’s tutorials. This allowed students to understand the functionality of
the mentioned devices and edit previous code to perform different tasks.
Project 4 consisted on completing tasks 1-9 and
reporting the results.
4. Results
Figure 1: Task 1 – Display “Hello World” starting from the second rectangle on the same line.
Movie 1: Task 2 – Count to 5 then reset to 0.
Movie 2: Task 3 – Scrolling Text
Movie 3: Task 4 – Thermistor room temperature reading
Figure 3: Task 5 – DHT11 measuring temperature and humidity
Figure 4: Task 6 – IC temperature sensor (TMP36)
Movie 4: Task 7 – IR Receiver Module
Movie 5: Task 8 – Barebone ATmega328p
5. Discussion
Tasks
1 - 8 were performed and executed successfully. Task 9 was
unsuccessful, I wasn't able to get my code running. Great project
overall, the ability to program Arduino
to control different electronic devices will be very useful throughout
the
students’ engineering careers.